      SUBROUTINE SETUP
      RETURN
      END
C   HS45
      SUBROUTINE EF(X,FX)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),FX
      ICF=ICF+1
      FX=2.D0- X(1)*X(2)*X(3)*X(4)*X(5)/120.D0
      RETURN
      END
      SUBROUTINE EGRADF(X,GRADF)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),GRADF(NX),X45,X23,X1D,X1D23
      ICGF=ICGF+1
      X45=X(4)*X(5)
      X23=X(2)*X(3)
      X1D=X(1)/120.D0
      X1D23=X1D*X23
      GRADF(1)=-X23*X45/120.D0
      GRADF(2)=-X1D*X45*X(3)
      GRADF(3)=-X1D*X(2)*X45
      GRADF(4)=-X1D23*X(5)
      GRADF(5)=-X1D23*X(4)
      RETURN
      END
      SUBROUTINE EH(I,X,HXI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),HXI
      CRES(I)=CRES(I)+1
      RETURN
      END
      SUBROUTINE EGRADH(I,X,GRADHI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),GRADHI(NX)
      CGRES(I)=CGRES(I)+1
      RETURN
      END
      SUBROUTINE EG(I,X,GXI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),GXI
      IF ( GUNIT(1,I+NH) .EQ. -1 )CRES(I+NH)=CRES(I+NH)+1      
      IF(I .GT. 5)      GOTO 100
      GXI=X(I)
      RETURN
  100 CONTINUE
      GXI=DBLE(I-5)-X(I-5)
      RETURN
      END
      SUBROUTINE EGRADG(I,X,GRADGI)
      INCLUDE 'FUCO.INC'
      INTEGER I,J
      DOUBLE PRECISION X(NX),GRADGI(NX)
      IF ( GUNIT(1,I+NH) .EQ. 1 )RETURN
      CGRES(I+NH)=CGRES(I+NH)+1
      DO      10      J=1,5
      GRADGI(J)=0.D0
  10  CONTINUE
      IF(I .GT. 5)          GOTO  100
      GRADGI(I)= 1.D0
      RETURN
  100 CONTINUE
      GRADGI(I-5)=-1.D0
      RETURN
      END
      BLOCK DATA
      INCLUDE 'BLOCO.INC'
      INTEGER I,J
      DATA NAME/'HS45'/
      DATA (X(I),I=1,5)/5*2.D0/
      DATA N/5/ , NH/0/ , NG/10/
      DATA DEL0/1.00D0/ ,TAU0/1.00D0/ ,TAU/.1D0/
      DATA ((GUNIT(I,J),I=1,3),J=0,10)/-1,0,0,
     F           1,1,1,1,2,1,1,3,1,1,4,1,1,5,1,
     F           1,1,-1,1,2,-1,1,3,-1,1,4,-1,1,5,-1/
      END
